<h1>Listing inventories</h1>

<table>
  <tr>
    <th>Size</th>
    <th>Size number</th>
    <th>Quantity</th>
    <th>Product</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @inventories.each do |inventory| %>
  <tr>
    <td><%= inventory.size %></td>
    <td><%= inventory.size_number %></td>
    <td><%= inventory.quantity %></td>
    <td><%= inventory.product_id %></td>
    <td><%= link_to 'Show', inventory %></td>
    <td><%= link_to 'Edit', edit_inventory_path(inventory) %></td>
    <td><%= link_to 'Destroy', inventory, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Inventory', new_product_inventory_path %>
